<div style="width: 1px;height: 20px;"></div>
<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <h3 class="card-title">记录</h3>
                    </div>
                    <!-- /.card-header -->
                    <div class="card-body">
                        <table id="example1" class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>账单ID</th>
                                <th>账单名称</th>
                                <th>金额</th>
                                <th>创建时间</th>
                                <th>类型</th>
                                <th>人员</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($data['bookkeeping'] as $k=>$v){ ?>
                                <tr>
                                    <td><?= $v['b_id'] ?></td>
                                    <td><?= $v['b_name'] ?></td>
                                    <td><?= $v['consume_money'] ?></td>
                                    <td><?= date('m-d H:i',$v['add_time']) ?></td>
                                    <td><?= $v['b_type']==1?'<span style="color: red;">减少</span>':'<span style="color: green;">增加</span>'; ?></td>
                                    <td><?= $v['real_name'] ?></td>
                                </tr>
                            <?php } ?>
                            </tbody>
                            <tfoot>
                            <tr>
                                <th>账单ID</th>
                                <th>账单名称</th>
                                <th>金额</th>
                                <th>创建时间</th>
                                <th>类型</th>
                                <th>人员</th>
                            </tr>
                            </tfoot>
                        </table>
                    </div>
                    <!-- /.card-body -->
                </div>
                <!-- /.card -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </div>
    <!-- /.container-fluid -->
</section>
